package com.example.demo2.dao;

import org.apache.ibatis.annotations.*;

import java.util.List;
import java.util.Map;

@Mapper
public interface TestMapper {
    //    @Select("select 1 from dual")
    int test1();

    @Insert("insert into test1(`name`) values (#{name})")
    int insert(@Param("name") String name);

    @Delete("delete from test1 where name = #{name}")
    int delete(String s);

    @Select("select id , name from test1 order by 1")
    List<Map<String, Object>> selectAll();


}
